<!--{assign var="menu_id" value="message"}-->
<!--{include file="<!--{$oetplpath}-->block_header.tpl"}--> 
<!--{include file="<!--{$oetplpath}-->block_top.tpl"}--> 
<!--{include file="<!--{$oetplpath}-->block_banner.tpl"}-->
<div class="oe_inmain"> 
  <!--{include file="<!--{$oetplpath}-->block_left.tpl"}-->
  <div class="right">
    <div class="oe_ufriend">
      <div class="oe_unav"> 我的私信 </div>
      <div class="oe_utitle">
        <ul>
          <li><a href="<!--{$oefile}-->&c=msgcontact" class="current">私信</a></li>
          <li><a href="<!--{$oefile}-->&c=msg">消息</a></li>
        </ul>
        <div class="clear"></div>
      </div>
      <div class="msgcontact_list">
        <div class="total_tips">
          <p class="text"> 共有 <b><!--{$total}--></b> 个信件联系人 <br>
            主动给会员发信、送礼物，也许会有惊喜哦！~<br />
            升级会员，可获得更多发信、看信权限。 </p>
          <div class="btn"> <span class="span_2"><a href="<!--{$oefile}-->&c=vip">升级会员</a></span> </div>
          <div class="clear"></div>
        </div>
        
        <!--{if empty($msgcontact)}-->
        <div class="oe_nodata">
          <p class="p_1"><img src="<!--{$userskin}-->images/nodata.jpg" /></p>
          <p class="p_2">没有符合条件的信息！</p>
        </div>
        <!--{else}--> 
        <!--{foreach $msgcontact as $volist}-->
        <dl>
          <dt> <span><a href="<!--{$volist.homeurl}-->"><img src="<!--{$volist.headimg}-->" /></a></span> 
            <!--{if $volist.notreads > 0}--> 
            <em><!--{$volist.notreads}--></em> 
            <!--{/if}--> 
          </dt>
          <dd>
            <h3> <a href="<!--{$volist.homeurl}-->" target="_blank"><!--{$volist.username}--></a> 
              <!--{if $volist.isonline == '1'}--><i></i><!--{/if}-->
              <label class="rz"> 
                <!--{if $volist.idrz == '1'}--> <span class="span_1 current"></span> <!--{/if}--> 
                <!--{if $volist.mobilerz == '1'}--><span class="span_2 current"></span> <!--{/if}--> 
                <!--{if $volist.qqrz == '1'}--><span class="span_3 current" style="display:none;"></span> <!--{/if}--> 
                <!--{if $volist.emailrz == '1'}--><span class="span_4 current" style="display:none;"></span><!--{/if}--> 
              </label>
              <em><!--{$volist.lastime|date_format:"%m/%d %H:%M"}--></em> 
            </h3>
            <p class="p_1"> 
              <!--{$volist.age}-->岁 
              <!--{if $volist.marry > 0}--> 
              <!--{hook mod="var" item="marry" type="text" value=$volist.marry}--> 
              <!--{/if}--> 
              <!--{if $volist.height > 0}--> 
              <!--{$volist.height}-->CM 
              <!--{/if}--> 
              <!--{area type="text" value=$volist.dist1}--> <!--{area type="text" value=$volist.dist2}--> 
            </p>
            <p class="p_2"><!--{$volist.message.content|words:80:"...":1}--></p>
            <!--{if $volist.lastmsgid == 0}--> 
            <b class="send cursor" f="but_msgchat_read" data-sid="<!--{$volist.bgsid}-->"><a href="javascript:;">发私信</a></b> 
            <!--{else}--> 
            <b class="read cursor" f="but_msgchat_read" data-sid="<!--{$volist.bgsid}-->"><a href="javascript:;">看私信</a></b> 
            <!--{/if}--> 
          </dd>
          <div class="clear"></div>
        </dl>
        <!--{/foreach}--> 
        <!--{/if}--> 
      </div>
      <!--//msgcontact_list End--> 
      <!--{if $total > 0 && !empty($showpage)}-->
      <div class="oe_page"> <!--{$showpage}--> </div>
      <!--{/if}--> 
    </div>
  </div>
  <div class="clear"></div>
</div>
<!--{include file="<!--{$oetplpath}-->block_footer.tpl"}--> 
<script type="text/javascript">
$(function(){
	//查看信件
	//$(document).on("click", "[f='but_msgchat_read']", function(){
	$("[f='but_msgchat_read']").bind("click", function(){
		$_sid = $(this).attr("data-sid");
		if ($_sid.length > 0) {
			$chat_url = _ROOT_PATH+"index.php?m=user&c=msgchat&datatype=json&sid="+$_sid;
			oeChatShadeBox("pop_sendmsg", "ajax", $chat_url, 850, 550);
		}
	});
});
</script>
</body></html>